package br.ufrj.ppgi.jemf_basic_example;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class TabsPagerAdapter extends FragmentPagerAdapter {

	public TabsPagerAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int index) {
/*		switch (index) {
		case 0:
			// Emergency fragment activity.
			return new EmergencyFragment();
		case 1:
			// Mission fragment activity.
			return new MissionFragment();
		case 2:
			// Task fragment activity.
			return new TaskFragment();
		case 3:
			// Affected Organization fragment activity.
			return new AffectedOrganizationFragment();
		case 4:
			// Health Care Unit fragment activity.
			return new HealthCareUnitFragment();
		case 5:
			// Equipment fragment activity.
			return new EquipmentFragment();
		case 6:
			// Location fragment activity.
			return new LocationFragment();
		case 7:
			// InterestPoint fragment activity.
			return new InterestPointFragment();
		case 8:
			// Commander fragment activity.
			return new CommanderFragment();
		case 9:
			// Medical fragment activity.
			return new MedicalFragment();
		case 10:
			// Responder fragment activity.
			return new ResponderFragment();
		case 11:
			// Volunteer fragment activity.
			return new VolunteerFragment();
		case 12:
			// Victim fragment activity.
			return new VictimFragment();
		case 13:
			// Witness fragment activity.
			return new WitnessFragment();
		case 14:
			// Contact fragment activity.
			return new ContactFragment();
		case 15:
			// Plan fragment activity.
			return new PlanFragment();
		case 16:
			// TextMessage fragment activity.
			return new TextMessageFragment();
		case 17:
			// Team fragment activity.
			return new TeamFragment();
		}*/
		return null;
	}

	@Override
	public int getCount() {
		// Get item count - equal to number of tabs.
		return 18;
	}

}
